
from sys import stdout

from memodeath import *


def main():
    playground = Generation('MyParser') \
                .generate_from_grammar(
                    grammar_from_source(open('tests/calc.gram').read())) \
                .get_playground()
    
    result = playground.boot('2 + 2')
    
    print(result)
    


if __name__ == '__main__':
    main()
